Fix handling of non-associative equal levels.
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 18 May 2010 16:03:51 +0000 (12:03 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 18 May 2010 16:03:51 +0000 (12:03 -0400)
commitc87fb8d19ebcc1750a2ed2af1a6070dbd47b370a
treead0bb5a57037f1cdbcb846d8f93df95807632d29
parent28e0c79f411032e58032f20ba0874e9900ae83ad
Fix handling of non-associative equal levels.
* emacs-lisp/smie.el (smie-prec2-levels): Choose distinct levels even
when it's not needed.
(smie-op-left, smie-op-right): New functions.
(smie-next-sexp): New function, extracted from smie-backward-sexp.
Better handle equal levels to distinguish the associative case from
the "multi-keyword construct" case.
(smie-backward-sexp, smie-forward-sexp): Use it.
lisp/ChangeLog
lisp/emacs-lisp/smie.el